import sys
from os.path import abspath, dirname
import unittest
import requests
import pprint

#set python path
api_dir = dirname(dirname(abspath(__file__)))
project_dir = dirname(api_dir)
sys.path.insert(0, project_dir)

from api import views


SERVER = 'http://localhost:8001'

class ViewsTest(unittest.TestCase):
        

    def test_register(self):
        register_id = ''
        phone_number = ''
        url = '%s/register/%s/%s' % (SERVER, register_id, phone_number) 
        url = '%s/register/%s' % (SERVER, register_id) 

        #url = '%s/register' % (SERVER) 
        res = requests.get(url)
        #print res.content



if __name__ == '__main__':
    unittest.main()

        
